package com.yaohuan;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author YaoHuan
 * @ClassName CustomServlet
 * @Description TODO
 * @Date 2023/4/18 21:14
 */
public class CustomServlet implements Servlet {
    @Override
    public void init(ServletConfig config) throws ServletException {
        System.out.println("init");
    }

    @Override
    public ServletConfig getServletConfig() {
        System.out.println("getServletConfig");
        return null;
    }

    @Override
    public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
        System.out.println("service");
    }

    @Override
    public String getServletInfo() {
        System.out.println("getServletInfo");
        return null;
    }

    @Override
    public void destroy() {

    }
}
